package sctu.edu.java.year2016.team07.shihaocheng.day20160531.chapter10_3;


import java.util.HashMap;
import java.util.Map;

/**
 * Created by admin on 2016/6/5.
 */
public class TestMap {
    public static void main(String[] args) {
        Map<String, String> map = new HashMap<>();
        Emp emp1 = new Emp("001","MR li");
        Emp emp2 = new Emp("005","MR zhang ");
        Emp emp3 = new Emp("004","MR zhao");
        map.put(emp1.getId(), emp1.getName());
        map.put(emp2.getId(), emp2.getName());
        map.put(emp3.getId(), emp3.getName());
        System.out.println("map中的元素" + map);
        map.remove("005");
        System.out.println("移除key为005的元素" + map);
    }
}

